using System;

namespace Altova.TypeInfo
{
	public class NamespaceInfo
	{
		private readonly InfoBinderInterface binder;

		public readonly string namespaceURI;

		public readonly string prefix;

		public readonly int typeBegin;

		public readonly int typeEnd;

		public TypeInfo[] Types
		{
			get
			{
				TypeInfo[] array = new TypeInfo[typeEnd - typeBegin];
				Array.Copy(binder.Types, typeBegin, array, 0, array.Length);
				return array;
			}
		}

		public NamespaceInfo(InfoBinderInterface binder, string namespaceURI, string prefix, int typeBegin, int typeEnd)
		{
			this.namespaceURI = namespaceURI;
			this.prefix = prefix;
			this.binder = binder;
			this.typeBegin = typeBegin;
			this.typeEnd = typeEnd;
		}
	}
}
